# -*- coding: utf-8 -*-

# Scrapy settings for hupu project
#
# For simplicity, this file contains only the most important settings by
# default. All the other settings are documented here:
#
#     http://doc.scrapy.org/en/latest/topics/settings.html
#

BOT_NAME = 'hupu'

SPIDER_MODULES = ['hupu.spiders']
NEWSPIDER_MODULE = 'hupu.spiders'

# Crawl responsibly by identifying yourself (and your website) on the user-agent
#USER_AGENT = 'hupu (+http://www.yourdomain.com)'

ITEM_PIPELINES = {
    #'hupu.pipelines.JsonWriterPipeline': 300
  'scrapy_mongodb.MongoDBPipeline'
}

MONGODB_URI = 'mongodb://127.0.0.1:27017'
MONGODB_DATABASE = 'hupu'
MONGODB_COLLECTION = 'player'
MONGODB_UNIQUE_KEY = 'finger'
